package com.j2203.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
//  `id` int(11) NOT NULL AUTO_INCREMENT,
//  `oid` varchar(255) DEFAULT NULL,
//  `price` double DEFAULT NULL,
//  `time` datetime DEFAULT NULL,
//  `uid` int(11) DEFAULT NULL,
//  `state` int(11) DEFAULT NULL,
    private int id;
    private long oid;
    private double price;
    private java.sql.Timestamp time;
    private int uid;
    private int state;

    public Order(long oid, double price, Timestamp time, int uid, int state) {
        this.oid = oid;
        this.price = price;
        this.time = time;
        this.uid = uid;
        this.state = state;
    }

    //    public static void main(String[] args) {
//        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
//        System.out.println(timestamp);
//    }
}
